// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_INV_OAPPI
// * CreateDate    : 2013-12-20 23:31:44
// * Creater       : CodeSmith
// * LastChangeDate: 2013-12-20 23:31:44
// * LastChanger   : 2013-12-20 23:31:44
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Suzsoft.Smart.Data;
using ESOL.Common.Entity;

namespace ESOL.Business.Inv
{
/// <summary>
    /// InvOappi
    /// </summary>
    public partial class InvOappiBs
    {
        #region GetByID
        /// <summary>
        /// Get Entity
        /// </summary>
        /// <param name="objInvOappiEntity">Entity</param>
        /// <returns>Entity</returns>
        public static InvOappiEntity GetInvOappi(InvOappiEntity objInvOappiEntity)
        {
            return DataAccess.SelectSingle<InvOappiEntity>(objInvOappiEntity);
        }
        #endregion


        #region Insert
        /// <summary>
        /// Insert Data
        /// </summary>
        /// <param name="objInvOappiEntity">Entity</param>
        /// <returns>true Insert Succeed; false Insert Fail</returns>
        public static bool InsertInvOappi(InvOappiEntity objInvOappiEntity)
        {
            return DataAccess.Insert(objInvOappiEntity);
        }

        public static bool InsertInvOappi(List<InvOappiEntity> objInvOappiEntityList)
        {
            return DataAccess.Insert(objInvOappiEntityList);
        }
        #endregion


        #region Update
        /// <summary>
        /// Update Data
        /// </summary>
        /// <param name="objInvOappiEntity">Entity</param>
        /// <returns>true Update Succeed; false Update Fail</returns>
        public static bool UpdateInvOappi(InvOappiEntity objInvOappiEntity)
        {
            return DataAccess.Update(objInvOappiEntity);
        }

        public static bool UpdateInvOappi(List<InvOappiEntity> objInvOappiEntityList)
        {
            return DataAccess.Update<InvOappiEntity>(objInvOappiEntityList);
        }
        #endregion


        #region Delete
        /// <summary>
        /// Delete Data
        /// </summary>
        /// <param name="objInvOappiEntity">Entity</param>
        /// <returns>true Delete Succeed; false Delete Fail</returns>
        public static bool DeleteInvOappi(InvOappiEntity objInvOappiEntity)
        {
            return DataAccess.Delete(objInvOappiEntity);
        }

        public static bool DeleteInvOappi(List<InvOappiEntity> objInvOappiEntityList)
        {
            return DataAccess.Delete<InvOappiEntity>(objInvOappiEntityList);
        }
        #endregion


        #region GetAll
        /// <summary>
        /// Get All Data
        /// </summary>
        /// <returns>Back All Data<returns>
        public static DataSet GetInvOappiAll()
        {
            return DataAccess.SelectAllDataSet<InvOappiEntity>();
        }
        /// <summary>
        /// Get All Data List
        /// </summary>
        /// <returns>Back All Data List<returns>
        public static List<InvOappiEntity> GetInvOappiAllList()
        {
            return DataAccess.SelectAll<InvOappiEntity>();
        }
        #endregion

        public static DataSet GetAllDsBySql(string sql)
        {
            return DataAccess.SelectDataSet(sql);
        }
	}
	
	
}	

